{% load i18n %}
<!DOCTYPE html>
<html class='{% block htmlclass %}js{% endblock %}'>
<head>
<meta charset='UTF-8'>
<meta http_equiv='X-UA-Compatible' content='IE=edge,chrome=1'/>
<title>{% block title %}dummy title{% endblock%}|{%trans 'Liuda liuda'%}</title>
<meta name='author' content='Davis Zhao<daviszhao1212@gmail.com>'/>
<meta name='description' content=''/>
<meta name='keywords' content=''/>
<meta name='viewport' content='width=980,initial-scale=1'/>
<link rel='shortcut icon' href='{{STATIC_URL}}images/icon.png'/>
<link rel='apple-touch-icon' href='{{STATIC_URL}}images/icon.png'/>

{%block common_style %}
<link type='text/css' rel='stylesheet' href='{{STATIC_URL}}styles/common.css' />
{%endblock%}
{%block page_style %}
{%endblock%}
{%block common_scripts%}{% if debug %}
<script type='javascript' src='{{STATIC_URL}}scripts/jquery-1.7.2.js'></script>
{%else %}
<script type='javascript' src='{{STATIC_URL}}scripts/jquery-1.7.2.min.js'></script>
{% endif %}
<script type='javascript' src='{{STATIC_URL}}scripts/common.js'></script>
{%endblock%}
{%block page_scripts%}
{%endblock%}
</head>
<body class='{% block bodyclass %}home{% endblock %}'>
<div class='wrapper-content'>
{% block header %}
  <header class='header'>
      <a class='header_logo imagebuttom' href='/' ></a>
      <p class='profile'>
      {% if user.is_authenticated %}
      {% blocktrans with current.member.nickname|default:user as u%}Welcom back,{{u}}{%endblocktrans%}
       <a href='{{globalinfo.homeurl}}'>{%trans 'home page'%}</a>
      <a href='{{globalinfo.interesturl}}'>{%trans 'interest setting'%}</a>
      <a href='{{globalinfo.discoverurl}}'>{%trans 'discover'%}</a>
      <a class='logout' href='{{globalinfo.logouturl}}'>{%trans 'logout'%}</a>
      {% else %}
      {% blocktrans with globalinfo.loginurl as url %}Already a member?<a href='{{ url }}'>Login</a>{%endblocktrans%}
      {% endif %}
      </p>
  </header>
{% endblock %}
<div id='content' class='{% block contentclass %}nnononono{% endblock %}'>
{% block content %}
{% endblock %}
</div>
  </div>

{% block footer %}
  <footer class='footer'>
{% block copyright %}
    <p class='footer_copyright'>&copy; 2012 Liuda Liuda</p>
{% endblock %}
{% block footerlinks %}
    <p class='footer_links'>
      <mark>{%trans 'About Liuda Liuda'%}</mark>
      <a href='{{globalinfo.abouturl}}'>{%trans 'about'%}</a>
      <a href='{{globalinfo.termurl}}'>{%trans 'term'%}</a>
      <a href='{{globalinfo.privacyurl}}'>{%trans 'privacy'%}</a>
    </p>
        <p class='footer_links'>
      <mark>{%trans 'Tools & services'%}</mark>
      <a href=''>{%trans 'addons'%}</a>
      <a href=''>{%trans 'help'%}</a>
    </p>
{% endblock %}
  </footer>
{% endblock %}
{% if debug %}
<table>
<caption>sql info </caption>
{% for query in sql_queries %}
<tr><td>{{query.sql}} <td>{{query.time}}
{% endfor %}
</table>
{% endif%}
</body>
</html>
